package com.lago.simple;

/**
 * @author yuhe
 * @version 1.0
 * @date 2020/11/19 10:34
 */
public class ComputerFactory {

    public static Computer createComputer(String type) {
        Computer computer = null;
        switch (type) {
            case "lenvo":
                computer = new LenvoComputer();
            case "hp":
                computer = new hpuComputer();
        }
        return computer;
    }
}
